package com.twu.biblioteca;

public class Movie extends Item {

    int year;

    public Movie(String title, int year) {
        super(title);
        this.year = year;
    }

    public String toString() {
        return "[movie] | " + this.getTitle() + " (" + this.getYear() + ")";
    }

    public int getYear() {
        return year;
    }

}
